<?php
class Application_Model_SituacaoHabitacional extends Zend_Db_Table
{
    protected $_name    = 'tb_situacao_habitacional';
    protected $_primary = array('id_situacao_habitacional');

    public function getSituacaoHabitacional()
    {
        $select = $this->select();
        $rowSet = $this->fetchAll($select);

        $situacoes = array('' => 'Selecione');
        if ($rowSet) {
            foreach($rowSet as $situacao) {
                $situacoes[$situacao->id_situacao_habitacional] = $situacao->ds_situacao_habitacional;
            }
        }

        return $situacoes;
    }
}